import request from '@/utils/request'

// 查询证书目录列表
export function listCertificate_menu(query) {
  return request({
    url: '/system/certificate_menu/list',
    method: 'get',
    params: query
  })
}

// 查询证书目录详细
export function getCertificate_menu(id) {
  return request({
    url: '/system/certificate_menu/' + id,
    method: 'get'
  })
}

// 新增证书目录
export function addCertificate_menu(data) {
  return request({
    url: '/system/certificate_menu',
    method: 'post',
    data: data
  })
}

// 修改证书目录
export function updateCertificate_menu(data) {
  return request({
    url: '/system/certificate_menu',
    method: 'put',
    data: data
  })
}

// 删除证书目录
export function delCertificate_menu(id) {
  return request({
    url: '/system/certificate_menu/' + id,
    method: 'delete'
  })
}
